package com.nulldev.util.internal.backport.httpclient_rw;

import com.nulldev.util.internal.backport.concurrency9.concurrent.Flow;
import com.nulldev.util.internal.backport.httpclient_rw.impl.common.Demand;

/**
 * A {@link Flow.Subscription} wrapping a {@link Demand} instance.
 */
abstract class AbstractSubscription implements Flow.Subscription {
	private final Demand demand = new Demand();

	/**
	 * Returns the subscription's demand.
	 * 
	 * @return the subscription's demand.
	 */
	protected Demand demand() {
		return demand;
	}
}